package cn.tedu.submarine_1;

import javax.swing.*;

public class TorpedoSubmarine extends SeaObject{

    public TorpedoSubmarine() {
        super(64, 20);
    }

    @Override
    public ImageIcon getImage() {
        return Images.torpesubm;
    }
    public void move(){
        setX(getX()+getSpeed());
    }
}

